package com.starblink.search.result.ui.widget

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.constraintlayout.widget.ConstraintLayout

class SearchMainContainer @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    themeId: Int = -1
) :
    ConstraintLayout(context, attrs, themeId) {

    var onDispatchEvent: ((ev: MotionEvent?) -> Unit)? = null

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        onDispatchEvent?.invoke(ev)
        return super.dispatchTouchEvent(ev)
    }

}